package java67_adv4;

import java.util.Scanner;

public class ScanTest2 {

	public static void main(String[] args) {
		// next() nextLine()的区别
		Scanner in = new Scanner(System.in);
		System.out.print("input:");
//		String a = in.nextLine();
//		String b = in.nextLine();
//		System.out.println(a + "," + b);
//		System.out.println(String.format("a len=%d,b len=%d", a.length(), b.length()));
		int i = in.nextInt();
		// String s = in.next();
		in.nextLine();
		System.out.println("input a string");
		String s = in.nextLine();
		System.out.println("i=" + i + ",s=" + s);
	}

}
